Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.UIHelp = undefined;
var $2UITtext = require("UITtext");
var $2UITtext2 = require("UITtext2");
var exp_UIHelp = /* */function () {
  function _ctor() {
    babel_classCallCheck(this, _ctor);
  }
  return babel_createClass(_ctor, null, [{
    key: "showTip",
    value: function showTip(e) {
      var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : cc.color(255, 255, 255);
      var n = cc.Canvas.instance.node.getChildByName("UITtext");
      if (n) {
        n.getComponent($2UITtext.UITtext).showTip(e, t);
      } else {
        cc.loader.loadRes("Prefab/UI/UITtext", cc.Prefab, function (o, i) {
          if (o) {
            cc.log(o);
          } else if (!(n = cc.Canvas.instance.node.getChildByName("UITtext"))) {
            var _n47 = i;
            var _o118 = cc.instantiate(_n47);
            _o118.parent = cc.Canvas.instance.node;
            _o118.zIndex = 1e3;
            _ctor.showTip(e, t);
          }
        });
      }
    }
  }, {
    key: "showMulTip",
    value: function showMulTip(e) {
      var t = cc.Canvas.instance.node.getChildByName("UITtext2");
      if (t) {
        t.getComponent($2UITtext2.UITtext2).showTip(e);
      } else {
        cc.loader.loadRes("Prefab/UI/UITtext2", cc.Prefab, function (n, o) {
          if (n) {
            cc.log(n);
          } else if (!(t = cc.Canvas.instance.node.getChildByName("UITtext2"))) {
            var _t51 = o;
            var _n48 = cc.instantiate(_t51);
            _n48.parent = cc.Canvas.instance.node;
            _n48.zIndex = 1e3;
            _ctor.showMulTip(e);
          }
        });
      }
    }
  }]);
}();
exports.UIHelp = exp_UIHelp;